package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdCategoryEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdCategoryCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdCategoryUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdCategorySearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdCategoryOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdCategoryResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdCategoryRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdCategoryConverter;
import com.lion.ball.modules.orderfood.service.def.OfdCategoryService;
import com.lion.ball.modules.orderfood.web.api.OfdCategoryApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 食品分类 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/category")
public class OfdCategoryController implements OfdCategoryApi, BaseCrudController<
        OfdCategoryEntity,
        OfdCategoryCreateParam,
        OfdCategoryUpdateParam,
        OfdCategorySearchParam,
        OfdCategoryOrderParam,
        OfdCategoryResult,
        OfdCategoryRepository,
        OfdCategoryConverter,
        OfdCategoryService
        > {

    @Autowired
    OfdCategoryService ofdCategoryService;

    @Override
    public OfdCategoryService getService() {
        return ofdCategoryService;
    }
}